package com.wxd.framework.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.wxd.framework.common.mybatis.MyBatisEntityDao;
import com.wxd.framework.entity.Role;

@Repository
public class RoleDao extends MyBatisEntityDao<Role>{
	
	public Role selectRoleWithUserRolesByRoleId(String roleId){
		return super.selectOne(super.mapNamespace + ".selectRoleWithUserRolesByRoleId", roleId);
	}
	
	public List<Role> selectByRoleName(String roleName){
		return super.getSqlSession().selectList(super.mapNamespace + ".selectByRoleName", roleName);
	}
		
	public List<Role> selectAllListUnStoped(){
		return super.getSqlSession().selectList(super.mapNamespace + ".selectAllListUnStoped");
	}
}